import http from '@/utils/http'
//
/**
 * @params request 请求地址
 * @param '/testIp' 代表vue-cli中config, index.js中配置代理
 */
let request = ''

// post请求add
export function getBusinessListWithChannel(params){
  return http.get(`${request}/yyymobile/sys/api/v1/channel/getBusinessListWithChannel`, params)
}


export function insertChannelInfo(params){
  return http.post(`${request}/yyymobile/sys/api/v1/channel/insertChannelInfo`, params)
}


export function selectChannelInfos(params){
  return http.post(`${request}/yyymobile/sys/api/v1/channel/selectChannelInfos`, params)
}

export function selectChannelInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/channel/selectChannelInfo`, params)
}


export function updateChannelInfo(params){
  return http.put(`${request}/yyymobile/sys/api/v1/channel/updateChannelInfo`, params)
}


export function insertChannelQuotation(params){
  return http.post(`${request}/yyymobile/sys/api/v1/channel/insertChannelQuotation`, params)
}

export function selectChannelQuotations(params){
  return http.post(`${request}/yyymobile/sys/api/v1/channel/selectChannelQuotations`, params)
}


export function updateChannelQuotation(params){
  return http.put(`${request}/yyymobile/sys/api/v1/channel/updateChannelQuotation`, params)
}
